package com.liuguoqing.Interfaceisolation.after.impl;

import com.liuguoqing.Interfaceisolation.after.AntiTheft;
import com.liuguoqing.Interfaceisolation.after.FireProof;
import com.liuguoqing.Interfaceisolation.after.WaterPoor;

/**
 * 单继承，多实现！实现多个接口
 * @Author : liugq
 * @Date : 2022/5/12 20:22
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class HeiMaSafetyDoor implements AntiTheft, FireProof, WaterPoor {

    public void antiTheft() {
        System.out.println("防盗");
    }

    public void firePoor() {
        System.out.println("防火");
    }

    public void waterPoor() {
        System.out.println("防水");
    }
}
